// 车辆信息
import ajax from './ajax'

// 驶入记录
export const getVehicleList = ({
	addressAlias,
	startDate,
	endDate,
	headLicensePlateNo,
	page,
	pageSize,
	url,
	agentId
}) => {
	let data = {}
	if (url === 'warnInfoLeaveList') {
		data = {
			agentId,
			currentPage: page,
			pageSize,
			addressAlias,
			startDate,
			endDate,
			headLicensePlateNo,
		}
	} else {
		data = {
			agentId,
			page,
			pageSize,
			addressAlias,
			startDate,
			endDate,
			headLicensePlateNo,
		}
	}
	return ajax.post(`/monitor/api/warnInfo/${url}`, data)
}